import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:flutter_first_one/routes/index.dart';
import 'package:flutter_first_one/get_controller/binding.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
// ignore: use_super_parameters
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Flutter Demo',
      initialBinding: AllController(), //初始化绑定所有的全局状态对象
      initialRoute: '/',
      // 设置跳转动画
      defaultTransition: Transition.rightToLeft,
      // get版本的route列表
      getPages: AppRoutes.routes,
    );
  }
}
